3.14 \(\int \frac{\sinh ^4(x)}{a+b \cosh ^2(x)} \, dx\)

Optimal. Leaf size=59 \[ -\frac{x (2 a+3 b)}{2 b^2}+\frac{(a+b)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a+b}}\right )}{\sqrt{a} b^2}+\frac{\sinh (x) \cosh (x)}{2 b} \]

[Out]

-((2*a + 3*b)*x)/(2*b^2) + ((a + b)^(3/2)*ArcTanh[(Sqrt[a]*Tanh[x])/Sqrt[a + b]])/(Sqrt[a]*b^2) + (Cosh[x]*Sin
h[x])/(2*b)

________________________________________________________________________________________

Rubi [A]  time = 0.116243, antiderivative size = 59, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 15, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {3191, 414, 522, 206, 208} \[ -\frac{x (2 a+3 b)}{2 b^2}+\frac{(a+b)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a+b}}\right )}{\sqrt{a} b^2}+\frac{\sinh (x) \cosh (x)}{2 b} \]

Antiderivative was successfully verified.

[In]

Int[Sinh[x]^4/(a + b*Cosh[x]^2),x]

[Out]

-((2*a + 3*b)*x)/(2*b^2) + ((a + b)^(3/2)*ArcTanh[(Sqrt[a]*Tanh[x])/Sqrt[a + b]])/(Sqrt[a]*b^2) + (Cosh[x]*Sin
h[x])/(2*b)

Rule 3191

Int[cos[(e_.) + (f_.)*(x_)]^(m_)*((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]^2)^(p_.), x_Symbol] :> With[{ff = FreeF
actors[Tan[e + f*x], x]}, Dist[ff/f, Subst[Int[(a + (a + b)*ff^2*x^2)^p/(1 + ff^2*x^2)^(m/2 + p + 1), x], x, T
an[e + f*x]/ff], x]] /; FreeQ[{a, b, e, f}, x] && IntegerQ[m/2] && IntegerQ[p]

Rule 414

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> -Simp[(b*x*(a + b*x^n)^(p + 1)*(
c + d*x^n)^(q + 1))/(a*n*(p + 1)*(b*c - a*d)), x] + Dist[1/(a*n*(p + 1)*(b*c - a*d)), Int[(a + b*x^n)^(p + 1)*
(c + d*x^n)^q*Simp[b*c + n*(p + 1)*(b*c - a*d) + d*b*(n*(p + q + 2) + 1)*x^n, x], x], x] /; FreeQ[{a, b, c, d,
 n, q}, x] && NeQ[b*c - a*d, 0] && LtQ[p, -1] &&  !( !IntegerQ[p] && IntegerQ[q] && LtQ[q, -1]) && IntBinomial
Q[a, b, c, d, n, p, q, x]

Rule 522

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*((c_) + (d_.)*(x_)^(n_))), x_Symbol] :> Dist[(b*e - a*f
)/(b*c - a*d), Int[1/(a + b*x^n), x], x] - Dist[(d*e - c*f)/(b*c - a*d), Int[1/(c + d*x^n), x], x] /; FreeQ[{a
, b, c, d, e, f, n}, x]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 208

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-(a/b), 2]*ArcTanh[x/Rt[-(a/b), 2]])/a, x] /; FreeQ[{a,
b}, x] && NegQ[a/b]

Rubi steps

\begin{align*} \int \frac{\sinh ^4(x)}{a+b \cosh ^2(x)} \, dx &=\operatorname{Subst}\left (\int \frac{1}{\left (1-x^2\right )^2 \left (a-(a+b) x^2\right )} \, dx,x,\coth (x)\right )\\ &=\frac{\cosh (x) \sinh (x)}{2 b}-\frac{\operatorname{Subst}\left (\int \frac{-a-2 b+(-a-b) x^2}{\left (1-x^2\right ) \left (a+(-a-b) x^2\right )} \, dx,x,\coth (x)\right )}{2 b}\\ &=\frac{\cosh (x) \sinh (x)}{2 b}+\frac{(a+b)^2 \operatorname{Subst}\left (\int \frac{1}{a+(-a-b) x^2} \, dx,x,\coth (x)\right )}{b^2}-\frac{(2 a+3 b) \operatorname{Subst}\left (\int \frac{1}{1-x^2} \, dx,x,\coth (x)\right )}{2 b^2}\\ &=-\frac{(2 a+3 b) x}{2 b^2}+\frac{(a+b)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a+b}}\right )}{\sqrt{a} b^2}+\frac{\cosh (x) \sinh (x)}{2 b}\\ \end{align*}

Mathematica [A]  time = 0.0930782, size = 52, normalized size = 0.88 \[ \frac{\frac{4 (a+b)^{3/2} \tanh ^{-1}\left (\frac{\sqrt{a} \tanh (x)}{\sqrt{a+b}}\right )}{\sqrt{a}}-4 a x-6 b x+b \sinh (2 x)}{4 b^2} \]

Antiderivative was successfully verified.

[In]

Integrate[Sinh[x]^4/(a + b*Cosh[x]^2),x]

[Out]

(-4*a*x - 6*b*x + (4*(a + b)^(3/2)*ArcTanh[(Sqrt[a]*Tanh[x])/Sqrt[a + b]])/Sqrt[a] + b*Sinh[2*x])/(4*b^2)

________________________________________________________________________________________

Maple [B]  time = 0.04, size = 342, normalized size = 5.8 \begin{align*} -{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-2}}+{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) ^{-1}}-{\frac{a}{{b}^{2}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }-{\frac{3}{2\,b}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) +1 \right ) }+{\frac{1}{2\,{b}^{2}}{a}^{{\frac{3}{2}}}\ln \left ( \sqrt{a+b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+2\,\sqrt{a}\tanh \left ( x/2 \right ) +\sqrt{a+b} \right ){\frac{1}{\sqrt{a+b}}}}+{\frac{1}{b}\sqrt{a}\ln \left ( \sqrt{a+b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+2\,\sqrt{a}\tanh \left ( x/2 \right ) +\sqrt{a+b} \right ){\frac{1}{\sqrt{a+b}}}}+{\frac{1}{2}\ln \left ( \sqrt{a+b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}+2\,\sqrt{a}\tanh \left ( x/2 \right ) +\sqrt{a+b} \right ){\frac{1}{\sqrt{a}}}{\frac{1}{\sqrt{a+b}}}}-{\frac{1}{2\,{b}^{2}}{a}^{{\frac{3}{2}}}\ln \left ( \sqrt{a+b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-2\,\sqrt{a}\tanh \left ( x/2 \right ) +\sqrt{a+b} \right ){\frac{1}{\sqrt{a+b}}}}-{\frac{1}{b}\sqrt{a}\ln \left ( \sqrt{a+b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-2\,\sqrt{a}\tanh \left ( x/2 \right ) +\sqrt{a+b} \right ){\frac{1}{\sqrt{a+b}}}}-{\frac{1}{2}\ln \left ( \sqrt{a+b} \left ( \tanh \left ({\frac{x}{2}} \right ) \right ) ^{2}-2\,\sqrt{a}\tanh \left ( x/2 \right ) +\sqrt{a+b} \right ){\frac{1}{\sqrt{a}}}{\frac{1}{\sqrt{a+b}}}}+{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-2}}+{\frac{1}{2\,b} \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) ^{-1}}+{\frac{a}{{b}^{2}}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) }+{\frac{3}{2\,b}\ln \left ( \tanh \left ({\frac{x}{2}} \right ) -1 \right ) } \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sinh(x)^4/(a+b*cosh(x)^2),x)

[Out]

-1/2/b/(tanh(1/2*x)+1)^2+1/2/b/(tanh(1/2*x)+1)-a/b^2*ln(tanh(1/2*x)+1)-3/2/b*ln(tanh(1/2*x)+1)+1/2/b^2*a^(3/2)
/(a+b)^(1/2)*ln((a+b)^(1/2)*tanh(1/2*x)^2+2*a^(1/2)*tanh(1/2*x)+(a+b)^(1/2))+1/b*a^(1/2)/(a+b)^(1/2)*ln((a+b)^
(1/2)*tanh(1/2*x)^2+2*a^(1/2)*tanh(1/2*x)+(a+b)^(1/2))+1/2/a^(1/2)/(a+b)^(1/2)*ln((a+b)^(1/2)*tanh(1/2*x)^2+2*
a^(1/2)*tanh(1/2*x)+(a+b)^(1/2))-1/2/b^2*a^(3/2)/(a+b)^(1/2)*ln((a+b)^(1/2)*tanh(1/2*x)^2-2*a^(1/2)*tanh(1/2*x
)+(a+b)^(1/2))-1/b*a^(1/2)/(a+b)^(1/2)*ln((a+b)^(1/2)*tanh(1/2*x)^2-2*a^(1/2)*tanh(1/2*x)+(a+b)^(1/2))-1/2/a^(
1/2)/(a+b)^(1/2)*ln((a+b)^(1/2)*tanh(1/2*x)^2-2*a^(1/2)*tanh(1/2*x)+(a+b)^(1/2))+1/2/b/(tanh(1/2*x)-1)^2+1/2/b
/(tanh(1/2*x)-1)+a/b^2*ln(tanh(1/2*x)-1)+3/2/b*ln(tanh(1/2*x)-1)

________________________________________________________________________________________

Maxima [F(-2)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)^4/(a+b*cosh(x)^2),x, algorithm="maxima")

[Out]

Exception raised: ValueError

________________________________________________________________________________________

Fricas [B]  time = 2.02386, size = 1667, normalized size = 28.25 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)^4/(a+b*cosh(x)^2),x, algorithm="fricas")

[Out]

[1/8*(b*cosh(x)^4 + 4*b*cosh(x)*sinh(x)^3 + b*sinh(x)^4 - 4*(2*a + 3*b)*x*cosh(x)^2 + 2*(3*b*cosh(x)^2 - 2*(2*
a + 3*b)*x)*sinh(x)^2 + 4*((a + b)*cosh(x)^2 + 2*(a + b)*cosh(x)*sinh(x) + (a + b)*sinh(x)^2)*sqrt((a + b)/a)*
log((b^2*cosh(x)^4 + 4*b^2*cosh(x)*sinh(x)^3 + b^2*sinh(x)^4 + 2*(2*a*b + b^2)*cosh(x)^2 + 2*(3*b^2*cosh(x)^2
+ 2*a*b + b^2)*sinh(x)^2 + 8*a^2 + 8*a*b + b^2 + 4*(b^2*cosh(x)^3 + (2*a*b + b^2)*cosh(x))*sinh(x) - 4*(a*b*co
sh(x)^2 + 2*a*b*cosh(x)*sinh(x) + a*b*sinh(x)^2 + 2*a^2 + a*b)*sqrt((a + b)/a))/(b*cosh(x)^4 + 4*b*cosh(x)*sin
h(x)^3 + b*sinh(x)^4 + 2*(2*a + b)*cosh(x)^2 + 2*(3*b*cosh(x)^2 + 2*a + b)*sinh(x)^2 + 4*(b*cosh(x)^3 + (2*a +
 b)*cosh(x))*sinh(x) + b)) + 4*(b*cosh(x)^3 - 2*(2*a + 3*b)*x*cosh(x))*sinh(x) - b)/(b^2*cosh(x)^2 + 2*b^2*cos
h(x)*sinh(x) + b^2*sinh(x)^2), 1/8*(b*cosh(x)^4 + 4*b*cosh(x)*sinh(x)^3 + b*sinh(x)^4 - 4*(2*a + 3*b)*x*cosh(x
)^2 + 2*(3*b*cosh(x)^2 - 2*(2*a + 3*b)*x)*sinh(x)^2 + 8*((a + b)*cosh(x)^2 + 2*(a + b)*cosh(x)*sinh(x) + (a +
b)*sinh(x)^2)*sqrt(-(a + b)/a)*arctan(1/2*(b*cosh(x)^2 + 2*b*cosh(x)*sinh(x) + b*sinh(x)^2 + 2*a + b)*sqrt(-(a
 + b)/a)/(a + b)) + 4*(b*cosh(x)^3 - 2*(2*a + 3*b)*x*cosh(x))*sinh(x) - b)/(b^2*cosh(x)^2 + 2*b^2*cosh(x)*sinh
(x) + b^2*sinh(x)^2)]

________________________________________________________________________________________

Sympy [F(-1)]  time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)**4/(a+b*cosh(x)**2),x)

[Out]

Timed out

________________________________________________________________________________________

Giac [B]  time = 1.21566, size = 139, normalized size = 2.36 \begin{align*} -\frac{{\left (2 \, a + 3 \, b\right )} x}{2 \, b^{2}} + \frac{e^{\left (2 \, x\right )}}{8 \, b} + \frac{{\left (4 \, a e^{\left (2 \, x\right )} + 6 \, b e^{\left (2 \, x\right )} - b\right )} e^{\left (-2 \, x\right )}}{8 \, b^{2}} + \frac{{\left (a^{2} + 2 \, a b + b^{2}\right )} \arctan \left (\frac{b e^{\left (2 \, x\right )} + 2 \, a + b}{2 \, \sqrt{-a^{2} - a b}}\right )}{\sqrt{-a^{2} - a b} b^{2}} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(sinh(x)^4/(a+b*cosh(x)^2),x, algorithm="giac")

[Out]

-1/2*(2*a + 3*b)*x/b^2 + 1/8*e^(2*x)/b + 1/8*(4*a*e^(2*x) + 6*b*e^(2*x) - b)*e^(-2*x)/b^2 + (a^2 + 2*a*b + b^2
)*arctan(1/2*(b*e^(2*x) + 2*a + b)/sqrt(-a^2 - a*b))/(sqrt(-a^2 - a*b)*b^2)